home *** CD-ROM | disk | FTP | other *** search
/ Freelog 70 / Freelog070.iso / Internet / EasyPHP / easyphp1-8_setup.exe / {app} / phpmyadmin / libraries / header_meta_style.inc.php < prev    next >
Encoding:
PHP Script  |  2004-06-13  |  3.2 KB  |  70 lines

  1. <?php
  2. /* $Id: header_meta_style.inc.php,v 2.1 2004/06/13 21:31:35 lem9 Exp $ */
  3. // vim: expandtab sw=4 ts=4 sts=4:
  4.  
  5. /**
  6.  * Sends the beginning of the html page then returns to the calling script
  7.  */
  8. // Gets the font sizes to use
  9. PMA_setFontSizes();
  10. // Defines the cell alignment values depending on text direction
  11. if ($GLOBALS['text_dir'] == 'ltr') {
  12.     $GLOBALS['cell_align_left']  = 'left';
  13.     $GLOBALS['cell_align_right'] = 'right';
  14. } else {
  15.     $GLOBALS['cell_align_left']  = 'right';
  16.     $GLOBALS['cell_align_right'] = 'left';
  17. }
  18. // removes the bug with the horizontal scrollbar in IE (it's allways shown, if need it or not)
  19. echo "<?xml version=\"1.0\" encoding=\"" . $GLOBALS['charset'] . "\"?".">"; 
  20.  
  21. ?>
  22. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  23.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  24. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][2]; ?>" lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][2]; ?>" dir="<?php echo $GLOBALS['text_dir']; ?>">
  25.  
  26. <head>
  27. <title>phpMyAdmin</title>
  28. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $GLOBALS['charset']; ?>" />
  29. <?php
  30. if (!empty($GLOBALS['cfg']['PmaAbsoluteUri'])) {
  31.     echo '<base href="' . $GLOBALS['cfg']['PmaAbsoluteUri'] . '" />' . "\n";
  32. }
  33. ?>
  34. <script language="JavaScript" type="text/javascript">
  35. <!--
  36.     /* added 2004-06-10 by Michael Keck
  37.      *       we need this for Backwards-Compatibility and resolving problems
  38.      *       with non DOM browsers, which may have problems with css 2 (like NC 4)
  39.     */
  40.     var isDOM      = (typeof(document.getElementsByTagName) != 'undefined'
  41.                       && typeof(document.createElement) != 'undefined')
  42.                    ? 1 : 0;
  43.     var isIE4      = (typeof(document.all) != 'undefined'
  44.                       && parseInt(navigator.appVersion) >= 4)
  45.                    ? 1 : 0;
  46.     var isNS4      = (typeof(document.layers) != 'undefined')
  47.                    ? 1 : 0;
  48.     var capable    = (isDOM || isIE4 || isNS4)
  49.                    ? 1 : 0;
  50.     // Uggly fix for Opera and Konqueror 2.2 that are half DOM compliant
  51.     if (capable) {
  52.         if (typeof(window.opera) != 'undefined') {
  53.             var browserName = ' ' + navigator.userAgent.toLowerCase();
  54.             if ((browserName.indexOf('konqueror 7') == 0)) {
  55.                 capable = 0;
  56.             }
  57.         } else if (typeof(navigator.userAgent) != 'undefined') {
  58.             var browserName = ' ' + navigator.userAgent.toLowerCase();
  59.             if ((browserName.indexOf('konqueror') > 0) && (browserName.indexOf('konqueror/3') == 0)) {
  60.                 capable = 0;
  61.             }
  62.         } // end if... else if...
  63.     } // end if
  64.     document.writeln('<link rel="stylesheet" type="text/css" href="<?php echo defined('PMA_PATH_TO_BASEDIR') ? PMA_PATH_TO_BASEDIR : './'; ?>css/phpmyadmin.css.php?lang=<?php echo $GLOBALS['lang']; ?>&js_frame=right&js_isDOM=' + isDOM + '" />');
  65. //-->
  66. </script>
  67. <noscript>
  68.     <link rel="stylesheet" type="text/css" href="<?php echo defined('PMA_PATH_TO_BASEDIR') ? PMA_PATH_TO_BASEDIR : './'; ?>css/phpmyadmin.css.php?lang=<?php echo $GLOBALS['lang']; ?>&js_frame=right" />
  69. </noscript>
  70.